package com.tsd.system.dao;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysGroupDuty;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysGroupDutyMapper
 *
 * @author 15971
 * @date 2019/12/27 14:42:27
 */
public interface SysGroupDutyMapper {

    SysGroupDuty selectByPrimaryKey(Long id);

    SysGroupDuty selectBySid(String sid);

    SysGroupDuty selectByName(String name);

    SysGroupDuty selectOtherByCodeInSameParent(SysGroupDuty record);

    SysGroupDuty selectOtherByNameInSameParent(SysGroupDuty record);

    int deleteByPrimaryKey(Long id);

    int insert(SysGroupDuty record);

    int insertSelective(SysGroupDuty record);

    int updateByPrimaryKey(SysGroupDuty record);

    int updateByPrimaryKeySelective(SysGroupDuty record);

    List<SysGroupDuty> selectByEntity(SysGroupDuty record);

    List<SysGroupDuty> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<Map<String, Object>> selectParamsByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysGroupDuty> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysGroupDuty> selectByParams(@Param("params") Map<String, Object> params);

    List<SysGroupDuty> selectByGroupSid(@Param("group_sid") String group_sid);
}
